var gulp=require("gulp"),liverel=require("gulp-livereload"),sass=require("gulp-ruby-sass"),webserver=require("gulp-webserver")
gulp.task("shuaxin",function(){
	return gulp.src("dest/").pipe(webserver({
		livereload:true,
		open:true
	}))
})
gulp.task("movefile",function(){
	return gulp.src("./src/**/*.{html,png,css,jpg,gif,js}").pipe(gulp.dest("dest/"))
})
gulp.task("sass",function(){
	return sass("src/css/*.scss").pipe(gulp.dest("dest/css"))
})
gulp.task("watch",function(){
	gulp.watch("src/**/*.{html,png,css,jpg,gif}",["movefile"])
	gulp.watch("src/css/*.scss",["sass"])
})
gulp.task("default",["movefile","sass","watch","shuaxin"])
